package com.yb.xczx.cloud.content.controller;


import com.yb.xczx.cloud.content.service.ICourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 课程分类 前端控制器
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-07
 */
@RestController
@RequestMapping("/course-category")
public class CourseCategoryController {


    @Autowired
    ICourseCategoryService courseCategoryService;
    @GetMapping("tree-nodes")
    public List treeNodes(){
        return courseCategoryService.treeNodes();
    }
}
